tell application "Terminal"	activate	-- If there are no open windows, open one.	if (count of windows) is less than 1 then		do script ""	end if	set theTab to selected tab in first window	do script "SelectedText" in theTabend tell